load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "nodejs_binary")

licenses(["notice"])  # Apache 2.0

ts_library(
    name = "ngc_lib",
    srcs = ["index.ts"],
    deps = [
        "//packages/compiler-cli",
        "@build_bazel_rules_typescript//internal/tsc_wrapped"
    ],
)

nodejs_binary(
    name = "ngc-wrapped",
    entry_point = "__main__/tools/ngc-wrapped/index.js",
    data = [":ngc_lib"],
    visibility = ["//visibility:public"],
)